package net.yiny.scrummer.model

import static org.hamcrest.MatcherAssert.assertThat
import static org.hamcrest.Matchers.is
import static org.mockito.Mockito.mock
import org.testng.annotations.BeforeMethod
import org.testng.annotations.Test


public class TestPhaseStrip {

    PhaseStrip cut

    @BeforeMethod
    void setup() {
        cut = new PhaseStrip()
    }

    @Test
    void initialise() {}

    @Test
    void cardsCollectionIsInitiallyEmpty() {
        assertThat cut.cards, is([])
    }

    @Test
    void aCardCanBeAddedToTheCollection() {
        def card = mock(Card)
        cut.addCard(card)
        assertThat cut.cards, is([card])
    }

    @Test
    void twoCardsCanBeAddedToTheCollection() {
        def cards = [mock(Card), mock(Card)]
        cards.each {cut.cards.add it}
        assertThat cut.cards, is(cards)
    }
}